package com.lmq.Decorator;

public class Test {
    public static void main(String[] args) {
//        Component component = new ConcreteDecorator1(new ComponentImpl());
        Component component =
                new ConcreteDecorator1(
                        new ConcreteDecorator2(
                                new ComponentImpl()));
        component.operation();
    }
}
